package com.xijia.example.manage.all.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.github.wslxm.springbootplus2.core.base.model.BaseDto;

/**
 * 站点管理 DTO
 *
 * <p>
 * ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655
 * </p>

 * @author ws
 * @email 1720696548@qq.com
 * @date 2024-09-25 11:36:42
 */
@Data
@ToString(callSuper = true)
@ApiModel(value = "SiteDTO 对象", description = "站点管理")
public class SiteDTO extends BaseDto {

    private static final long serialVersionUID = -1838784675310157824L;
    
    @ApiModelProperty(value = "站点名称")
    @Length(min=0, max=64,message = "站点名称 必须>=0 和 <=64位")
    private String name;

    @ApiModelProperty(value = "站点地址")
    @Length(min=0, max=256,message = "站点地址 必须>=0 和 <=256位")
    private String site;

    @ApiModelProperty(value = "站点类型")
    @Length(min=0, max=32,message = "站点类型 必须>=0 和 <=32位")
    private String type;

//    @ApiModelProperty(value = "访问状态")
//    @Length(min=0, max=32,message = "访问状态 必须>=0 和 <=32位")
//    private String visitState;

    @ApiModelProperty(value = "是否配置 https")
    @Length(min=0, max=32,message = "是否配置 https 必须>=0 和 <=32位")
    private String ifHttps;

    @ApiModelProperty(value = "https 过期时间")
    private LocalDateTime httpsExpirationTime;


    @ApiModelProperty(value = "标记为正常的 codes")
    private String normalCodes;

    @ApiModelProperty(value = "备注")
    @Length(min=0, max=256,message = "备注 必须>=0 和 <=256位")
    private String remarks;

    @ApiModelProperty(value = "排序")
    private Integer sort;

}

